//
//  HotModel.m
//  Time
//
//  Created by dllo on 16/7/23.
//  Copyright © 2016年 司昌宝. All rights reserved.
//

#import "HotModel.h"
#import "SCBUserinfo.h"
#import "SCBShareinfo.h"


@implementation HotModel

-(void)dealloc{
    [_hotId release];
    [_title release];
    [_titleEn release];
    [_coverimg release];
    [_baseimg release];
    [_userimg release];
    [_desc release];
    [_addtime release];
    [_plays release];
    [_scbUserinfo release];
    [_scbShareinfo release];
    [super dealloc];
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
    if ([key isEqualToString:@"id"]) {
        self.hotId = value;
    }
    if ([key isEqualToString:@"userinfo"]) {
        self.scbUserinfo = [[SCBUserinfo alloc] init];
        [self.scbUserinfo setValuesForKeysWithDictionary:value];
    }
    if ([key isEqualToString:@"shareinfo"]) {
        self.scbShareinfo = [[SCBShareinfo alloc] init];
        [self.scbShareinfo setValuesForKeysWithDictionary:value];
    }
}

@end
